
export function useEventChannel (num?:number) {
    const pages = getCurrentPages();
    const curPage = pages[pages.length - (num || 1)]; //获取当前页面
    const eventChannel = curPage.getOpenerEventChannel();
    return eventChannel
}
export default useEventChannel